package com.student.client.controller;

import com.student.client.entity.Daka;
import com.student.client.service.DakaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class DakaController {
    @Autowired
    private DakaService dakaService;

    @RequestMapping("/daka")
    public List<Daka> getdaka(){
        return dakaService.findAlldaka();
    }
}
